//
//  SZAccountViewModel.h
//  Weibo
//
//  Created by Zahi on 2017/7/26.
//  Copyright © 2017年 Zahi. All rights reserved.
//

#import <Foundation/Foundation.h>

@class SZUserAccount;
@interface SZAccountViewModel : NSObject


/**account**/
@property (nonatomic, strong) SZUserAccount *account;

/**是否登录过**/
@property (nonatomic, assign, getter = isLogin) BOOL login;

+ (instancetype)shared;

- (NSString *)accessToken;


/**
 获取通讯令牌

 @param code 授权码
 @param callBack 回调
 */
- (void)obtainAccessTokenWithCode:(NSString *)code callBack:(void(^)(BOOL isOK))callBack;
@end
